package com.yz.service;

import com.yz.entity.Categorys;
import com.yz.mapper.CategorysMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategorysService {

    @Autowired
    CategorysMapper categorysMapper;

    public List<Categorys> getAll(){
        List<Categorys> categorys = categorysMapper.selectAll();
        return categorys;
    }
}
